package com.bao.work;

import com.bao.work.classw.Student;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * @author baoye
 * @date 2024-07-29/18:53
 */
public class Work03 {
    public static void main(String[] args) {
        ArrayList<Student> sList = new ArrayList<>();
        Scanner input = new Scanner(System.in);
        System.out.println("请输入三个学生信息");
        for (int i = 0; i < 3; i++) {
            System.out.println("请输入学号");
            String sid = input.next();
            System.out.println("请输姓名");
            String name = input.next();
            System.out.println("请输入身高");
            Double height = input.nextDouble();
            sList.add(new Student(sid,name,height));
        }
        sList.forEach(System.out::println);
    }
}
